<!DOCTYPE html>
<html>

  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="applicable-device" content="pc">
    <title>重庆写字楼出租_重庆商务中心出租-重庆快址官网</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <link rel="shortcut icon" href="http://images.diandianzu.com/Public/Home/v5/images/favicon.ico">
    <link rel="stylesheet" type="text/css" href="css/common.css" />
    <link rel="stylesheet" type="text/css" href="css/index.css" />
    <style>
      body{
        perspective: 1200px;
        -webkit-perspective:1200px;
        -moz-perspective:1200px;
        -o-perspective:1200px;
        height:100vh;
        overflow:hidden;

      }
       content{
        width:100%;
        height:auto;
        display:block;
        transition-duration: 0ms;
        -webkit-transition-duration:0ms;
        -moz-transition-duration:0ms;
        -o-transition-duration:0ms;
        transform-style: preserve-3d;
        -webkit-transform-style:preserve-3d;
        -moz-transform-style:preserve-3d;
        -o-transform-style:preserve-3d;
        transition:transform 1s;
       }
       content section{
        width:100%;
        height:100vh;
        object-fit:contain;
       }
        content section img{
        width:100%;
        object-fit:contain;
       }
       section{
        display: block;
       }
          
    </style> 
      

  </head>
  <body>
      <content>
          <section>
              <img src="img/wheeleone.jpg"/>
          </section>
          <section>
              <img src="img/wheeletwo.jpg"/>
          </section>
          <section>
              <img src="img/wheelethree.jpg"/>
          </section>
      </content>
      <script type="text/javascript" src="js/common.js"></script>
      <script type="text/javascript">
              var i=0; 
              var heiall=-0;
              var didscroll=true;
              var content=document.getElementsByTagName("content")[0];
              var section=content.getElementsByTagName("section")[0];
              var scrollspan=section.offsetHeight;
              var allheight=section.offsetHeight*3;
              setInterval(function(){didscroll=true;},1400);
              function handleMouseWheel(event){
                if(didscroll){
                  didscroll=false;
                  var _event=EventUtil.getEvent(event);
                  var delta=EventUtil.getWheelDelta(_event);
                  if(delta>0){
                      heiall+=scrollspan;
                      if(heiall<=0){
                         content.style.transform="translate3d(0px,"+heiall+"px,0px)";
                         }else{
                         heiall-=scrollspan;
                           }
                      }else{
                        heiall-=scrollspan;
                        if(heiall>-allheight){
                          content.style.transform="translate3d(0px,"+heiall+"px,0px)";
                           }else{
                            heiall+=scrollspan;
                         }
                  }
                }
              }
                
                 EventUtil.addHandler(document,"mousewheel",handleMouseWheel);
                 EventUtil.addHandler(document,"DOMMouseScroll",handleMouseWheel);
                 

           
          
    </script>
  </body>

</html>